#ifndef __IPMS_CONSOLE_H
#define __IPMS_CONSOLE_H

#define CMD_STR_LEN 64

struct ipms_cmd {
    int type;
#define CMD_TYPE_SYS 0
#define CMD_TYPE_PCD 1
    char command[CMD_STR_LEN];
    char with_return;
    char description[64];
    int (*callback)(u_int16 id, char *args);
    u_int16 owner;
};

int ConsoleExecCmd(void *);
void ConsoleEventProcess(struct pcd_struct *, u_int8);
void ConsoleJoinCallback(struct pcd_struct *);
void ConsoleReportCallback(struct pcd_struct *);
void ConsoleMACCallback(struct pcd_struct *);
void ConsoleStatusCallback(struct pcd_struct *);

#endif
